Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add visitedNFT to localstorage #5249

Merged
merged 4 commits into from
Mar 13, 2023
Merged

Conversation

preschian
Copy link
Member

@preschian preschian commented Mar 13, 2023

Thank you for your contribution to the KodaDot NFT gallery.

👇 _ Let's make a quick check before the contribution.

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

  • fix e2e test case
  • re-add visitedNFTs to localstorage

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality
  • I've posted a screenshot of demonstrated change in this PR

Optional

  • I've tested it at </bsx/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

fix this error on localhost. how to reproduce: open gallery item in new tab

Screenshot 2023-03-13 at 20 27 01

@netlify
Copy link

netlify bot commented Mar 13, 2023

Deploy Preview for koda-nuxt ready!

Name Link
🔨 Latest commit b415f78
🔍 Latest deploy log https://app.netlify.com/sites/koda-nuxt/deploys/640f2081a402420008b9be96
😎 Deploy Preview https://deploy-preview-5249--koda-nuxt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't knew we used vuex-persist..
preferences still present over here will try to remove it

Comment on lines 117 to 120
localStorage.setItem(
'history',
JSON.stringify({ history: { visitedNFTs: this.visitedNFTs } })
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useStorage() might help (same stuff done in #5217)

@codeclimate
Copy link

codeclimate bot commented Mar 13, 2023

Code Climate has analyzed commit b415f78 and detected 0 issues on this pull request.

View more on Code Climate.

@preschian preschian marked this pull request as ready for review March 13, 2023 13:22
@preschian preschian requested a review from a team as a code owner March 13, 2023 13:22
@preschian preschian requested review from daiagi and Jarsen136 and removed request for a team March 13, 2023 13:22
@vikiival vikiival merged commit 1b16327 into main Mar 13, 2023
@vikiival vikiival deleted the fix/visited-nft-localstorage branch March 13, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants